package com.yuncheng.oaApi.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.vo.CurrentUserVo;
import com.yuncheng.oaApi.vo.OaFwVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface OaFwFlowMapper {
    Page<OaFwVo> flowJobPage(Page<OaFwVo> page,
                             @Param("onlyCurrentUser") boolean onlyCurrentUser,
                             @Param("user") CurrentUserVo user,
                             @Param("spcyFlowVo") OaFwVo oaFwVo);

    Page<OaFwVo> flowJkPage(Page<OaFwVo> page,
                              @Param("onlyCurrentUser") boolean onlyCurrentUser,
                              @Param("user") CurrentUserVo user,
                              @Param("spcyFlowVo") OaFwVo oaFwVo);

    List<OaFwVo> flowJkList(
            @Param("onlyCurrentUser") boolean onlyCurrentUser,
            @Param("user") CurrentUserVo user,
            @Param("spcyFlowVo") OaFwVo oaFwVo);


    Page<OaFwVo> myYbFlowPage(Page<OaFwVo> page,
                                @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                @Param("user") CurrentUserVo user,
                                @Param("spcyFlowVo") OaFwVo oaFwVo);

}
